package com.example.chessapp;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button bt1=findViewById(R.id.bt1);
        Button bt2=findViewById(R.id.bt2);
        Button bt3=findViewById(R.id.bt3);
        Button bt4=findViewById(R.id.bt4);
        Button bt5=findViewById(R.id.bt5);
        Button bt6=findViewById(R.id.button6);
    }

    public void temp(View V){
        Intent intent=new Intent(MainActivity.this,TempActivity.class);
        startActivity(intent);
    }

    public void score(View V){
        Intent intent=new Intent(MainActivity.this,ScoreActivity.class);
        startActivity(intent);
    }

    public void rate(View V){
        Intent intent=new Intent(MainActivity.this,RateActivity.class);
        startActivity(intent);
    }

    public void pho(View v){
        Intent intent=new Intent(Intent.ACTION_DIAL,Uri.parse("tel:13713227212"));
        startActivity(intent);
    }

    public void net(View v){
        Uri uri = Uri.parse("http://www.bilibili.com");
        Intent intent=new Intent(Intent.ACTION_VIEW,uri);
        startActivity(intent);
    }

    public void ratemanager(View v){
        RateManager manager = new RateManager(this);
        RateItem item = new RateItem("US","1.08",1);
        manager.add(item);
        Log.i("ratemanager","myclick:item"+manager);
    }
}


